from celery import Celery
import sys,os

# #工作看板，发布任务，异步执行的信息
# celery_app =Celery('meiduo_celery',
#                    broker='redis://127.0.0.1/6379/14',
#                    result_backend='redis://127.0.0.1:6379')
#                             #返回结果的地方
BASE_DIR=os.path.dirname(__file__)
celery_app =Celery('meiduo_celery')
celery_app.config_from_object('config')
celery_app.autodiscover_tasks(['tasks.calc','tasks.sms'])

